package com.dlmu.TreeMap;

import java.util.TreeMap;
import java.util.function.BiConsumer;

public class TreeMapDemo {
    public static void main(String[] args) {
        TreeMap<Student,String> tm=new TreeMap<>();

        Student s1=new Student("zhangsan",11);
        Student s2=new Student("Lisi",22);
        Student s3=new Student("Wangwu",33);

        tm.put(s1, "江西");
        tm.put(s2,"赣州");
        tm.put(s3,"上犹");

        System.out.println(tm);



    }
}
